package com.heima.model.wemedia.dtos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("wm_news的Dto对象")
public class WmNewsDto implements Serializable {
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "自媒体用户ID")
    private Integer userId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图文内容")
    private String content;

    @ApiModelProperty(value = "文章布局 0 无图文章 1 单图文章 3 多图文章")
    private Integer type;

    @ApiModelProperty(value = "图文频道ID")
    private Integer channelId;

    private String labels;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "提交时间")
    private LocalDateTime submitedTime;

    @ApiModelProperty(value = "当前状态 0 草稿 1 提交（待审核） 2 审核失败 3 人工审核 4 人工审核通过 8 审核通过（待发布） 9 已发布")
    private Integer status;

    @ApiModelProperty(value = "定时发布时间，不定时则为空")
    private LocalDateTime publishTime;

    @ApiModelProperty(value = "拒绝理由")
    private String reason;

    @ApiModelProperty(value = "发布库文章ID")
    private Long articleId;

    @ApiModelProperty(value = "图片")
    private List<String> images;

    @ApiModelProperty(value = "是否上架  0 下架  1 上架")
    private Integer enable;
}
